﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Domain.LogTable
{
    /// <summary>
    /// 登录日志
    /// </summary>
	[Table("LoginLog")]
    public class LoginLog : BaseData
    {
        /// <summary>
        /// 登录日志ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string LogId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 登录时间    
        /// </summary>
        public DateTime LoginTime { get; set; }
        /// <summary>
        /// 终端类型
        /// </summary>
        public string? TerminalType { get; set; }
        /// <summary>
        /// 浏览器版本
        /// </summary>
        public string? BrowserEdition { get; set; }
        /// <summary>
        /// 操作系统
        /// </summary>
        public string? OperatingSystem { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string? DeviceName { get; set; }
        /// <summary>
        /// MAC地址   
        /// </summary>
        public string? MACAddress { get; set; }
        /// <summary>
        /// 登录IP
        /// </summary>
        public string? LoginIP { get; set; }
        /// <summary>
        /// 所属地区
        /// </summary>
        public string? Address { get; set; }
    }
}
